/** \file    minmax.h
  * \brief   Additional min/max functions.
  * \date    2002
  * \author  Fedor Chelnokov
  * \version $Header: /home/cscom1r4/cvsroot/cs/include/xtd/minmax.h,v 1.1 2004/12/02 23:53:11 cscom1r4 Exp $
  */

#ifndef _minmax_h_
#define _minmax_h_

namespace xtd {

template <class T>
inline void min(T &v1, T v2) {
	if (v2 < v1)
		v1 = v2;
}

template <class T>
inline void max(T &v1, T v2) {
	if (v2 > v1)
		v1 = v2;
}

} //namespace xtd

#endif //_minmax_h_
